#ifndef _TF_TRAIN_H
#define _TF_TRAIN_H

#include <string> 
#include <map>
#include <iostream>

#include "ICTCLAS30.h"
#include "IreadFiler.h"
#include "Iweight.h"
#include "readTxt.h"
#include "split_ICTCLAS.h"
#include "def.h"




class  TFTrain
{
	typedef std::map<std::string, int> type_map;   
	typedef type_map::iterator type_iter;
protected:
	std::string				m_fileName;
	std::map<std::string,TWORD>		m_trainSet;
	std::vector<my_result>			m_vectorResult;
	int				nTotal;
	int				m_nSentenceCount;

	
public:
	TFTrain(void);
	virtual ~TFTrain(void);
	void init(std::string fileName);
	void train();
	int getTimes(std::string str_word);
	int getTotal();
	int getSentenceCount();
	int getSerialNumber(std::string str_word);

protected:
	void Statistics();

};

#endif
